package com.ruoyi.system.mapper;

import java.util.List;
import com.ruoyi.system.domain.MineQuestion;

/**
 * 题目Mapper接口
 * 
 * @author ruoyi
 * @date 2025-01-15
 */
public interface MineQuestionMapper 
{
    /**
     * 查询题目
     * 
     * @param questionId 题目主键
     * @return 题目
     */
    public MineQuestion selectMineQuestionByQuestionId(Long questionId);

    /**
     * 查询题目列表
     * 
     * @param mineQuestion 题目
     * @return 题目集合
     */
    public List<MineQuestion> selectMineQuestionList(MineQuestion mineQuestion);

    /**
     * 新增题目
     * 
     * @param mineQuestion 题目
     * @return 结果
     */
    public int insertMineQuestion(MineQuestion mineQuestion);

    /**
     * 修改题目
     * 
     * @param mineQuestion 题目
     * @return 结果
     */
    public int updateMineQuestion(MineQuestion mineQuestion);

    /**
     * 删除题目
     * 
     * @param questionId 题目主键
     * @return 结果
     */
    public int deleteMineQuestionByQuestionId(Long questionId);

    /**
     * 批量删除题目
     * 
     * @param questionIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteMineQuestionByQuestionIds(Long[] questionIds);

    /**
     * 查询总题目数量
     * @return 总题目数量
     */
    int selectMineQuestionTotalCount();

    List<MineQuestion> selectMineQuestionByIds(List<Long> questionIds);
}
